package com.enation.app.shop.front.policyInsurance.adminController.FileEnum;

public enum Type1 {

    ClaimLoss(1,"现场查勘"),
    HarmLess(2,"无害化"),
    Claimreported(3,"理赔报案"),
    Pact(4,"电子版合同");
    private final int value;

    private final String description;

    private Type1(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public static Type1 from(int value) {
        for (Type1 from : Type1.values()) {
            if (from.value == value) {
                return from;
            }
        }
        return null;
    }

    public int value(){
        return value;
    }
    @Override
    public String toString(){
        return description;
    }

}
